﻿using Data.Video;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Index2.Controllers
{
    public class BoxController : Controller
    {
        //
        // GET: /Box/
        private VideoEntities db = new VideoEntities();
        public ActionResult head()
        {
            return PartialView();
        }
        public ActionResult footter() { 
            return PartialView();
        }
        /// <summary>
        /// sitebar _layout.cshtml
        /// </summary>
        /// <returns></returns>
        public ActionResult sitebar()
        {
            return PartialView(db.Category.Take(20).ToList());
        }
    }
}
